package Java8实战._1_Lambda._5_定义接口对选择建模;

import Java8实战._1_Lambda.Apple;

public class AppleGreenColorPredicate implements ApplePredicate{

    @Override
    public boolean test(Apple apple){
        return "green".equals(apple.getColor());
    }
}
